{% extends "extend/base.html" %}
{% block page_content %}
	<div class="contentArea">
		<div class="posTitle">
			{% if post.title_html %}
				{{ post.title_html|safe }}
			{% else %}
				{{post.title}}
			{% endif %}
		</div>		
		<div class="post-date dateShow">{{ moment(post.timestamp).fromNow() }}</div>	<br>
	
		<div class="postBody">			
			{% if post.body_html %}
				{{ post.body_html|safe }}
			{% else %}
				{{ post.body }}
			{% endif %}
		</div>		
	</div>

	<div style="font-size: 22px;" class="contentArea" >评论</div>
	{% if post.getCommentCount() > 0 %}
		{{ macro.rendComments(comments) }}
		{{ macro.pagination_widget(pagination,'main.post_detail',id=post.id) }}
	{% else %}
		<p>还没有评论</p>
	{% endif %}
	
	<div>
		{{ macro.renderForm(form,'','')}}
	</div>
{% endblock %}

{% block scripts %}
	{{ super() }}
	{{ pagedown.include_pagedown() }}
{% endblock %}